import Vue from 'vue'
import App from './App'
// 使用了 uview组件
import uView from "uview-ui";
Vue.use(uView);
// 导入网络请求模块
import  http  from  "./utils/request.js";
import  URL  from  "./utils/config.js";
import  tips  from  "./utils/tips.js";
// 引入socket
import  io   from  "./utils/uniapp.socket.io.js";
let  socket = io.connect(URL.url);
// 进行挂载
Vue.prototype.$socket = socket;
Vue.prototype.$http = http;
Vue.prototype.$URL = URL.url;
Vue.prototype.$tips = tips;

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})

app.$mount()
